import request from '@/utils/request'


/**
 * 省份查询
 */
export function searchProvince(data) {
  return request({
    url: '/province/searchProvince',
    method: 'post',
    data
  })
}

/**
 * 通道配置查询
 */
export function findPageChannel(data) {
  return request({
    url: '/channelbase/findPageChannel',
    method: 'post',
    data
  })
}

/**
 * 添加通道配置
 * @param data
 * @returns {AxiosPromise}
 */
export function addChannel(data) {
  return request({
    url: '/channelbase/addChannel',
    method: 'post',
    data
  })
}

/**
 * 更新通道配置
 * @param data
 * @returns {AxiosPromise}
 */
export function updateChannel(data) {
  return request({
    url: '/channelbase/updateChannel',
    method: 'post',
    data
  })
}

/**
 * 查询所有
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllChannel(data) {
  return request({
    url: '/channelbase/findAllChannel',
    method: 'post',
    data
  })
}

/**
 * 查询单个通道
 * @param data
 * @returns {AxiosPromise}
 */
export function findByChannel(data) {
  return request({
    url: '/channelbase/findByChannel',
    method: 'post',
    data
  })
}

/**
 * 删除单个
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteChannel(data) {
  return request({
    url: '/channelbase/deleteChannel',
    method: 'post',
    data
  })
}

/**
 * 查询运营商
 * @param data
 * @returns {AxiosPromise}
 */
export function findPageOperator(data) {
  return request({
    url: '/operator/findPage',
    method: 'post',
    data
  })
}

/**
 * 配置查询
 * @param data
 * @returns {AxiosPromise}
 */
export function findPageConfig(data) {
  return request({
    url: '/sysconfig/findPageConfig',
    method: 'post',
    data
  })
}

/**
 * 保存系统配置
 * @param data
 * @returns {AxiosPromise}
 */
export function saveConfig(data) {
  return request({
    url: '/sysconfig/saveConfig',
    method: 'post',
    data
  })
}

/**
 * 更新系统配置
 * @param data
 * @returns {AxiosPromise}
 */
export function updateConfig(data) {
  return request({
    url: '/sysconfig/updateConfig',
    method: 'post',
    data
  })
}

/**
 * 删除配置
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteConfig(data) {
  return request({
    url: '/sysconfig/deleteConfig',
    method: 'post',
    data
  })
}

/**
 * 号段查询
 * @param data
 * @returns {AxiosPromise}
 */
export function findPageMobile(data) {
  return request({
    url: '/mobile/findPageMobile',
    method: 'post',
    data
  })
}

/**
 * 更新或者添加号段
 * @param data
 * @returns {AxiosPromise}
 */
export function updateMobile(data) {
  return request({
    url: '/mobile/updateMobile',
    method: 'post',
    data
  })
}

/**
 * 更新号段状态
 * @param data
 * @returns {AxiosPromise}
 */
export function updateMobileStatus(data) {
  return request({
    url: '/mobile/updateMobileStatus',
    method: 'post',
    data
  })
}

/**
 * 查询省份
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllProvince(data) {
  return request({
    url: '/mobile/findAllProvince',
    method: 'post',
    data
  })
}

/**
 * 查询地市
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllCity(data) {
  return request({
    url: '/mobile/findAllCity',
    method: 'post',
    data
  })
}

/**
 * 查询省份地市
 * @param data
 * @returns {AxiosPromise}
 */
export function findProvinceCity(data) {
  return request({
    url: '/mobile/findProvinceCity',
    method: 'post',
    data
  })
}


/**
 * 查询分销商信息
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllDownShopInfo(data) {
  return request({
    url: '/downshopinfo/findAllDownShopInfo',
    method: 'post',
    data
  })
}

/**
 * 查询业务类型
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllBus(data) {
  return request({
    url: '/businesstype/findAllBus',
    method: 'post',
    data
  })
}

/**
 * 分页查询业务类型
 * @param data
 * @returns {AxiosPromise}
 */
export function getBusTypePage(data) {
  return request({
    url: '/businesstype/searchBusinesType',
    method: 'post',
    data
  })
}

/**
 * 添加业务类型
 * @param data
 * @returns {AxiosPromise}
 */
export function addBussinesType(data) {
  return request({
    url: '/businesstype/addBussinesType',
    method: 'post',
    data
  })
}

/**
 * 启用禁用业务类型
 * @param data
 * @returns {AxiosPromise}
 */
export function updateBussinesType(data) {
  return request({
    url: '/businesstype/updateBussinesType',
    method: 'post',
    data
  })
}

/**
 * 批量提交
 * @param data
 * @returns {AxiosPromise}
 */
export function restBatch(data) {
  return request({
    url: '/downrechargeflow/restBatch',
    method: 'post',
    data
  })
}

/**
 * 查询测试配置
 * @param data
 * @returns {AxiosPromise}
 */
export function getConfig(data) {
  return request({
    url: '/downshopinfo/getConfig',
    method: 'post',
    data
  })
}

/**
 * 查询所有上游
 * @returns {AxiosPromise}
 */
export function findAllUpShopInfo(data) {
  return request({
    url: '/upshopinfo/findAllUpShopInfo',
    method: 'post',
    data
  })
}

/**
 * 查询系统折扣
 * @returns {AxiosPromise}
 */
export function getProductDiscount(data) {
  return request({
    url: '/plat/getProductDiscount',
    method: 'post',
    data
  })
}

/**
 * 查询用户日志
 * @param data
 * @returns {AxiosPromise}
 */
export function getUserLogPage(data) {
  return request({
    url: '/log/searchUserLog',
    method: 'post',
    data
  })
}

/**
 * 黑名单查询
 * @param data
 * @returns {AxiosPromise}
 */
export function getBlacklistPage(data) {
  return request({
    url: '/blacklist/getBlacklistPage',
    method: 'post',
    data
  })
}

/**
 * 更新黑名单
 * @param data
 * @returns {AxiosPromise}
 */
export function updateBlacklist(data) {
  return request({
    url: '/blacklist/updateBlacklist',
    method: 'post',
    data
  })
}

/**
 * 删除黑名单
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteBlacklist(data) {
  return request({
    url: '/blacklist/deleteBlacklist',
    method: 'post',
    data
  })
}

/**
 * 查询所有省份
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllPro(data) {
  return request({
    url: '/province/findAllPro',
    method: 'post',
    data
  })
}

/**
 * 查询基础配置
 * @param data
 * @returns {AxiosPromise}
 */
export function findOpeProBusShop(data) {
  return request({
    url: '/upproduct/findOpeProBusShop',
    method: 'post',
    data
  })
}

export function findPages(data) {
  return request({
    url: '/operator/findPage',
    method: 'post',
    data
  })
}

/**
 * 添加运营商
 * @param data
 * @returns {AxiosPromise}
 */
export function addOperator(data) {
  return request({
    url: '/operator/addOperator',
    method: 'post',
    data
  })
}

/**
 * 更新运营商
 * @param data
 * @returns {AxiosPromise}
 */
export function updateOperator(data) {
  return request({
    url: '/operator/updateOperator',
    method: 'post',
    data
  })
}

/**
 * 更新状态
 * @param data
 * @returns {AxiosPromise}
 */
export function updateStatusOperator(data) {
  return request({
    url: '/operator/updateStatusOperator',
    method: 'post',
    data
  })
}

/**
 * 查询好卡库存
 * @param data
 * @returns {AxiosPromise}
 */
export function findPageCardOrder(data) {
  return request({
    url: '/cardorder/findPage',
    method: 'post',
    data
  })
}

/**
 * 导出
 * @param data
 * @returns {AxiosPromise}
 */
export function exportOrder(data) {
  return request({
    url: '/cardorder/exportOrder',
    method: 'post',
    data
  })
}

/**
 * 导入
 * @param data
 * @returns {AxiosPromise}
 */
export function importOrder(data) {
  return request({
    url: '/cardorder/importOrder',
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteOrder(data) {
  return request({
    url: '/cardorder/deleteOrder',
    method: 'post',
    data
  })
}

/**
 * @param data
 * @returns {AxiosPromise}
 */
export function findAllBroad(data) {
  return request({
    url: '/user/findAllBroad',
    method: 'post',
    data
  })
}




